<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<!DOCTYPE html>
<html>
    <head>
        <link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' />
        <title>Put your property on the map</title>        
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <style>
            a {color:#404042;text-decoration:none;}      /* unvisited link */
            a:visited {color:#404042;}  /* visited link */
            a:hover {color:#404042;}  /* mouse over link */
            a:active {color:#404042;}  /* selected link */
        </style>
        <style>
            @font-face
            {
                font-family: avant;
                src: url('${model.props.appPath}/fonts/avangmi-webfont.ttf');
            }
            -webkit-overflow-scrolling: touch; 
        </style> 
        
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&libraries=places"></script>
        <script type="text/javascript" src="${model.props.appPath}/js/jquery/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="${model.props.appPath}/js/jquery/jquery-1.10.3-ui.min.js"></script> 
        <script type="text/javascript" src="${model.props.appPath}/js/token/jquery.tokeninput.js"></script> 
        
        <%@ include file="include/listingMaps_manage.jsp" %>
        
        <script type="text/javascript">
            $(function() {
                initialize();
            });
        </script>      
        
        <script>
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
            ga('create', 'UA-44197833-1', 'rentpad.com.ph');
            ga('send', 'pageview');
        </script>        
                                        
    </head>


    <body style="text-align: center; background-color: #FAFAFA; color: #404042; font-family: avant, Century Gothic, Calibri, Verdana; padding: 0px; margin: 0px;" >

        <div style="margin-top: 0px; background-color: white;">

            <%@include file="header.jsp" %>

            <div style="width: 100%; text-align: left; font-family: avant, Century Gothic, Calibri, Verdana; color: #404042; background-color: white; background: url('${model.props.appPath}/img/content-bg-short.jpg'); background-repeat: repeat-x; display: block; position: relative; top: -2px;">

                <br>                  

                <div style="width: 1020px; margin-top: 10px; margin: 0 auto;">

                    <h1>&nbsp;Next, place your property on the map:</h1>
                             
                    <div style="background-color: #f7f7f7; font-size: 14px; padding: 1px;">
                        <p style="color: #505050;">&nbsp;&nbsp;&nbsp;Tip #1: &nbsp;Browse the map and then <b>click</b> on the correct location</p>
                        <p style="color: #505050;">&nbsp;&nbsp;&nbsp;Tip #2: &nbsp;Placing the correct location increases your chances to be found on the Map Search</p>
                        <p style="color: #505050;">&nbsp;&nbsp;&nbsp;Tip #3: &nbsp;You can skip this if already placed in the correct location</p>
                        <p style="color: #505050;">&nbsp;&nbsp;&nbsp;Tip #4: &nbsp;Always smile =)</p>
                    </div>
                    
                    <hr>
                    <br>
                    <div id="map_canvas" style="width:1020px; height:400px; position:relative; left:0%"></div>
                                                
                    <br>
                    <table style="width: 95%">
                        <tr>
                            <td align="right">
                                <form>                        
                                    <input id="lat" type="hidden" name="lat" style="width:200px; padding: 5px;" value="${model.listing.lat}" readonly="readonly" /><br>
                                    <input id="lng" type="hidden" name="lng" style="width:200px; padding: 5px;" value="${model.listing.lng}" readonly="readonly" />
                                    <input type="hidden" name="s" value="1" />
                                    <input type="hidden" name="a" value="10000" />
                                    <input type="hidden" name="id" value="${model.listing.id}" />
                                    <a href="${model.props.appPath}/listing.htm?a=11000&id=${model.listing.id}" style="color: #369; text-decoration: underline;">Skip adding location</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <input type="submit" value="    Save location and take me to the last step    " style="font-size: 16px; padding: 5px; width: 400px"/>
                                </form>
                            </td>
                        </tr>
                    </table>

                </div>

                <br><br>                

            </div>

            <%@include file="footer.jsp" %>

        </div>

    </body>


</html>
